package com.oxy.action;

import java.util.Date;
import java.util.HashMap;

import com.opensymphony.xwork2.ActionSupport;
import com.oxy.svc.util.SvcRegister;
import com.oxy.util.Oxy;

public abstract class BaseAction extends ActionSupport {
	private static final long serialVersionUID = 489313475816148777L;
	
	private HashMap<String, Object> paraOut = new HashMap<String, Object>();
	private SvcRegister svcHolder = null;
	
	public String getAppName() {
		return Oxy.getAppName();
	}
	public String getRootPath() {
		return Oxy.getRootPath();
	}
	public String getRootUrl() {
		return Oxy.getRootUrl();
	}
	public HashMap<String, Object> getParaOut() {
		return paraOut;
	}
	public void setParaOut(HashMap<String, Object> paraOut) {
		this.paraOut = paraOut;
	}
	public SvcRegister getSvcHolder() {
		return svcHolder;
	}
	public void setSvcHolder(SvcRegister svcHolder) {
		this.svcHolder = svcHolder;
	}
	
	// 页面获取当前时间
	public long getCurrTime() {
		return new Date().getTime();
	}
}
